package _09StrategyFactoryDesign;

public class Context {
    private Strategy strategy;
    public Context(Strategy strategy){
        this.strategy=strategy;
    }

    public double ContextCost(double num){
        return strategy.cost(num);
    }
}
